Skip to content

Instantly share code, notes, and snippets.

@everyplace
everyplace / an introduction.md
Last active October 26, 2026 07:56
A method for handling orientation and device selection using agent-driven Xcode MCP connections

Workarounds for "Letting AI See SwiftUI": device and orientation in RenderPreview

Notes on the open problems in fatbobman's post, from driving Xcode's MCP bridge (xcrun mcpbridge) from an external agent. Observed on Xcode 27.0 RC, with plain #Preview (no PreviewProvider).

Orientation: solved with previewVariantOverrides

Every RenderPreview result includes a supportedPreviewVariantOverrides field listing the variants that preview accepts. Pass one back as previewVariantOverrides and the render uses it:

{
@everyplace
everyplace / Disable Xcode's permissions checks.md
Last active October 26, 2026 07:55
Configure Xcode 26.3 with agent support to use the iOS-simulator mcp server

Important

Re-verified against Xcode 27.0 beta (build 27A5194q) on 2026-06-16. The defaults below still exist, but the agent launch path and the external-agent approval flow both changed since 26.3. See What changed in 27.0 and the external-agent test.

Disable Xcode's agent permissions checks

Note

This covers "how to let Xcode's own agent reach outside itself without prompting." It does not solve the reverse: getting a terminal agent to drive Xcode without the per-launch prompt. That one is still open; see the bottom.

Setting this is the moral equivalent of claude --dangerously-skip-permissions, so weigh it accordingly.

@bennyistanto
bennyistanto / 0_install_WRF_on_WSL2.md
Last active October 26, 2026 07:54
Install the Weather Research and Forecasting Model on Windows Subsytem for Linux

Install the WRF Model in WSL2

This section will explain on how to install the Weather Research and Forecasting (WRF) Model inside Windows Subsystem for Linux (WSL) 2. This step-by-step guide was tested using Windows 11 with WSL2 - Debian 12 enabled running on ThinkStation P720.

--
Benny Istanto, Climate Geographer
GOST/DECSC/DECDG, The World Bank

Index

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@swayamg20
swayamg20 / README.md
Created October 25, 2026 19:24
Finding and fixing asyncio event-loop stalls in a streaming gateway: a stack-capturing watchdog, per-process shared resources, and the benchmark behind the numbers.

Event-loop stalls in an asyncio streaming gateway

Code for the article. Two parts:

The pattern (drop into your own service)

  • loop_watchdog.py: catches the event loop while it's blocked and logs the stack, the blocked time, and how much of it was GC.
  • shared_resources.py: one TLS context, one pooled HTTP client, and one tokenizer per process, built before traffic.
  • app.py: a small FastAPI streaming gateway wiring both together, plus gc.collect() and gc.freeze() at startup.
@chienbhvt10
chienbhvt10 / WITHOUT ACCOUNT Simpler Way to Download Files from Baidu, Quark & CSDN | Pandownloader.md
Last active October 26, 2026 07:38
WITHOUT ACCOUNT Simpler Way to Download Files from Baidu, Quark & CSDN | Pandownloader

PanDownloader – A Simpler Way to Download Files from Baidu, Quark & CSDN

Ever found a useful file on Baidu Netdisk or Quark Cloud, only to run into account registration, Chinese phone verification, or a complicated download process?

Sometimes, you don't need a whole folder. You just want one document, a small program, or a single file from a much larger collection.

That's what PanDownloader.com is here for.

Paste your link, check the available content, and download what you need. No extra hassle for supported files.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 26, 2026 07:36
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@zubir2k
zubir2k / solplanet.md
Last active October 26, 2026 07:36
Solplanet Inverter Template - IP and Serial No. maintained in a text input.

🌞 Solplanet Inverter Template

Easily apply template with Text input for inverter IP and serial no.
Note:

  1. If you have battery, it will fetch battery information such as SoC, Voltage, Amps, Current.
  2. I use ShellyEM to read reverse energy via CT Clamp.

🛠️ Initial Setup

Enter inverter IP Address and Serial Number to these input_text entity:
image

@lltx
lltx / terminal-setup.md
Last active October 26, 2026 07:30
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

📦 工具列表

  • Ghostty - 现代化 GPU 加速终端模拟器
  • Zoxide - 智能目录跳转工具(cd 的智能替代)
  • Yazi - 快速终端文件管理器
  • Oh-My-Zsh - Zsh 配置框架
@roylee0704
roylee0704 / dockergrep.sh
Created December 9, 2016 08:24
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container